package com.resign.carl.strategy;

import com.resign.carl.strategy.api.Duck;
import com.resign.carl.strategy.api.impl.FlyWithWings;
import com.resign.carl.strategy.api.impl.Quack;

/**
 * Created by carl.zhao on 2016/6/13.
 */
public class MallardDuck extends Duck {

    public MallardDuck(){
        quackBehavior = new Quack();
        flyBehavior = new FlyWithWings();
    }

    @Override
    public void display(){
        System.out.println("I'm a real Mallard duck");
    }

}
